import { Http } from "@/utils/http"

class AccountModel {
	all() {
		return Http.post('v2/account/all')
	}
	
	my() {
		return Http.post('v2/account/all')
	}
	
	accountTypeList() {
		return Http.post('account/accountTypeList')
	}
	
	add(data) {
		return Http.post('account/add', data)
	}
	
	getFundsType(type) {
		return Http.post('account/getFundsType', {type})
	}
	
	del(id) {
		return Http.post('account/del', {id})
	}
}

const accountModel = new AccountModel
export default accountModel